package com.wootide.cms.sys.common.pojo;

import com.wootide.cms.sys.role.pojo.RoleInfo;
import com.wootide.cms.sys.user.pojo.UserInfo;

public class UserRoles implements java.io.Serializable
{
    
    /**
     * 意义，目的和功能，以及被用到的地方<br>
     */
    private static final long serialVersionUID = 1L;

    //用户ID
    private Integer id;
    
    //用户信息
    private UserInfo userInfo;
    
    //角色信息
    private RoleInfo roleInfo;
    
    // Constructors
    
    public UserInfo getUserInfo()
    {
        return userInfo;
    }
    
    public void setUserInfo(UserInfo userInfo)
    {
        this.userInfo = userInfo;
    }
    
    public RoleInfo getRoleInfo()
    {
        return roleInfo;
    }
    
    public void setRoleInfo(RoleInfo roleInfo)
    {
        this.roleInfo = roleInfo;
    }
    
    /** default constructor */
    public UserRoles()
    {
    }
    
    /** full constructor */
    public UserRoles(UserInfo userInfo, RoleInfo roleInfo)
    {
        this.userInfo = userInfo;
        this.roleInfo = roleInfo;
    }
    
    // Property accessors
    
    public Integer getId()
    {
        return this.id;
    }
    
    public void setId(Integer id)
    {
        this.id = id;
    }
    
}